import axios from "axios";
export function request(config) {
  const instance = axios.create({
    baseURL: 'https://mockapi.eolinker.com/d4fvFDyd98de571ce31b650d9976b2d9466de6f74c442a0',
    timeout: 5000,
  })

  instance.interceptors.request.use(config => {
    return config
  }, err => {})

  instance.interceptors.response.use(res => {
    return res.data
  }, err => {})

  return instance(config)
}